<%inherit file="./base.html" />
<%def name="css()">
li {padding:8px 10px 5px;margin:0 0 0 0;font-size:1.1em;height:40px;border-bottom: 1px solid silver;}
li .count {font:italic bold 30px/25px Georgia, Serif;float:right;color:#BBB;}
li a:link, li a:visited {text-decoration:none;}
li:hover {background-color:#FAFAFA;}
.result {background-color:white;border:none;padding-top:0;}
.result ul {list-style:none;margin-left:0;border-top:4px solid #D26911;border-bottom:4px solid #D26911;}
.stats {margin-top:60px;padding:10px 19px 5px 19px;font-size:16px;}
.stats b {color:#DE3329;}
</%def>
<%def name="mbody()">
<div class="stats">
    有关"<b>${q}</b>"的${total_num}个资源:
</div>
<div class="result well">
    % if subjects:
        <ul>
            % for i, s in enumerate(subjects):
            <li>
                <span>${s.cat_desc.decode('utf8')}</span>
                <a href="/subject/${s.id}/">${s.name}</a>
                <span class="count">${i+1}</span>
            </li>
            % endfor
        </ul>
    % else:
        没找到
    % endif
</div>
</%def>
